﻿using KinonekoSoftware.CodariaDB;
using KinonekoSoftware.Foundation.UI.Converters;

namespace KinonekoSoftware.Studio.Resources.Converters
{
    public sealed class TeamTypeConverter : ConverterBase
    {

        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var t = (TeamType)(value is int type ? type : 0);

            return LanguageManager.GetEnum(t);
        }
    }
}